-- GENERATED SPELL FOR [Human Conjurer] --


function spell0_21683(pUnit, Event) --@Elemental Blast,n/a--
pUnit:FullCastSpellOnTarget(37462,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21683', 0, 1)
end

function spell1_21683(pUnit, Event) --@Rain of Fire,n/a--
pUnit:FullCastSpellOnTarget(37465,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21683', 10000, 1)
end

function Sorts_21683(pUnit, Event)
local choix_sorts_21683 = math.random(0, 1)
if choix_sorts_21683 == 0 then
pUnit:RegisterEvent('spell0_21683', 1, 1)
end
if choix_sorts_21683 == 1 then
pUnit:RegisterEvent('spell1_21683', 1, 1)
end
end

function mob21683_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21683', math.random(1500, 3000), 1)
end

function mob21683_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21683_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21683_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21683, 1, 'mob21683_Action')
RegisterUnitEvent(21683, 2, 'mob21683_Leave')
RegisterUnitEvent(21683, 3, 'mob21683_Kill')
RegisterUnitEvent(21683, 4, 'mob21683_Die')
